package com.tiancheng.trade.settlement.mapper.settlement;

import com.tiancheng.trade.settlement.mapper.TYBaseMapper;
import com.tiancheng.trade.settlement.model.settlement.SettleDetail;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @Entity com.tiancheng.trade.settlement.model.settlement.SettleDetail
 */
@Repository
public interface SettleDetailMapper extends TYBaseMapper<SettleDetail> {

    /**
     * 重对账明细表订单信息
     *
     * @return
     */
    List<SettleDetail> listReCheck(@Param("dataStatus") Integer dataStatus, @Param("offsetId") Long offsetId);

    Map<String,Object> getSumAmountByGroupCode(@Param("checkCode") String checkCode);


    List<SettleDetail> pageByCheckCodes(@Param("checkCodes") Set<String> checkCodes,@Param("startId")int startId,@Param("start")int start,@Param("size")int size);
}